package cn.yitun.chat.yitunservercommonlib.converter.po2vo.file;


import cn.yitun.chat.yitunservercommonlib.dataentity.po.userchat.UserHeadDataInfo;
import cn.yitun.chat.yitunservercommonlib.dataentity.vo.userchat.UserHeadDataVo;
import org.mapstruct.InheritInverseConfiguration;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper(componentModel = "spring")
public interface UserHeadDataPo2VoConverter {

    UserHeadDataPo2VoConverter INSTANCE = Mappers.getMapper(UserHeadDataPo2VoConverter.class);

    UserHeadDataInfo vo2po(UserHeadDataVo vo);

    List<UserHeadDataInfo> vo2po(List<UserHeadDataVo> voList);

    @InheritInverseConfiguration
    UserHeadDataVo po2vo(UserHeadDataInfo dto);

    @InheritInverseConfiguration
    List<UserHeadDataVo> po2vo(List<UserHeadDataInfo> dtoList);
}
